package com.cskaoyan.bean.vo.wxorder;

import com.cskaoyan.bean.bo.wxorder.OrderStatusText;
import com.cskaoyan.bean.po.ohter.MarketOrderGoods;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author Zhang Tao
 * @version 1.0.0
 * @description
 * @date since 2022-07-19 10:47
 */


public class OrderListVo {
    private Integer id;
    private Boolean isGroupin;
    private String orderSn;
    private String orderStatusText;
    private BigDecimal actualPrice;
    private Short aftersaleStatus;
    private List<MarketOrderGoods> goodsList;
    private HandleOption handleOption;

    public OrderListVo(Integer id,
                       Boolean isGroupin, String orderSn, String orderStatusText,
                       BigDecimal actualPrice, Short aftersaleStatus, List<MarketOrderGoods> goodsList, HandleOption handleOption) {
        this.id = id;
        this.isGroupin = isGroupin;
        this.orderSn = orderSn;
        this.orderStatusText = orderStatusText;
        this.actualPrice = actualPrice;
        this.aftersaleStatus = aftersaleStatus;
        this.goodsList = goodsList;
        this.handleOption = handleOption;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Boolean getGroupin() {
        return isGroupin;
    }

    public void setGroupin(Boolean groupin) {
        isGroupin = groupin;
    }

    public String getOrderSn() {
        return orderSn;
    }

    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }

    public String getOrderStatusText() {
        return orderStatusText;
    }

    public void setOrderStatusText(String orderStatusText) {
        this.orderStatusText = OrderStatusText.status(orderStatusText);
    }

    public BigDecimal getActualPrice() {
        return actualPrice;
    }

    public void setActualPrice(BigDecimal actualPrice) {
        this.actualPrice = actualPrice;
    }

    public Short getAftersaleStatus() {
        return aftersaleStatus;
    }

    public void setAftersaleStatus(Short aftersaleStatus) {
        this.aftersaleStatus = aftersaleStatus;
    }

    public List<MarketOrderGoods> getGoodsList() {
        return goodsList;
    }

    public void setGoodsList(List<MarketOrderGoods> goodsList) {
        this.goodsList = goodsList;
    }

    public HandleOption getHandleOption() {
        return handleOption;
    }

    public void setHandleOption(HandleOption handleOption) {
        this.handleOption = handleOption;
    }

    public OrderListVo() {
    }
}
